package cn.wen.yaling.xo.service;

import cn.wen.yaling.commons.utils.ResultEntity;
import cn.wen.yaling.commons.vo.TodoAddVO;
import cn.wen.yaling.commons.vo.TodoAdminListVO;
import cn.wen.yaling.commons.vo.TodoUpdateVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yaling.commons.utils.PageUtils;
import cn.wen.yaling.commons.entity.TodoEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author FY
 * @email 932043654@qq.com
 * @date 2022-08-13 02:07:37
 */
public interface TodoService extends IService<TodoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 通过是否已经做来获取数据
     * @param done
     * @return
     */
    List<TodoAdminListVO> getTodoListByDone(boolean done);

    /**
     * 添加待做事项
     * @param todoVO
     * @return
     */
    ResultEntity addTodo(TodoAddVO todoVO);

    /**
     * 修改待做事项信息
     * @param todoVO
     * @return
     */
    ResultEntity updateTodo(TodoUpdateVO todoVO);

    /**
     * 已做待做事项
     * @param todoList
     * @return
     */
    ResultEntity activeTodo(List<Integer> todoList);
}

